package com.ruoyi.hospital.service;

import com.ruoyi.hospital.domain.BaseQuery;
import com.ruoyi.hospital.domain.Dept;
import com.ruoyi.hospital.util.PageList;

import java.util.List;

public interface IHospitalDeptService {

    List<Dept> findAll();

    Dept selectDeptById(Long deptId);

    void update(Dept dept);

    void save(Dept dept);

    void delete(Long id);

    /**
     * 无限极树
     * @return
     */
    List<Dept> queryTree();
    /**
     * 科室搜索
     * @param name
     * @return
     */
    Dept selectDeptByName(String name);

    /**
     * 分页查询
     * @param query
     * @return
     */
    PageList<Dept> queryPage(BaseQuery query);
}
